package edu.mobbuzz.main;

import java.io.IOException;

import edu.mobbuzz.messaging.Messaging;

public class ServerConnection extends Thread {
	private Messaging messaging;
	
	public ServerConnection(Messaging messaging){
		this.messaging = messaging;
	}
	
	public void run(){
		try {
			//208.76.245.216
			//messaging.connect("http://buzzme.s155.eatj.com","news","mobbuzz.com","news",1);
			messaging.connect("127.0.0.1","news","mobbuzz.com","news",1);

		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
